/**
 * Copyright 2025 Adobe. All rights reserved.
 * This file is licensed to you under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License. You may obtain a copy
 * of the License at http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software distributed under
 * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
 * OF ANY KIND, either express or implied. See the License for the specific language
 * governing permissions and limitations under the License.
 */

@media (forced-colors: active) {
    .spectrum-Icon {
        forced-color-adjust: preserve-parent-color;
    }
}

:host {
    --spectrum-sidenav-focus-ring-size: var(--spectrum-focus-indicator-thickness);
    --spectrum-sidenav-focus-ring-gap: var(--spectrum-focus-indicator-gap);
    --spectrum-sidenav-focus-ring-color: var(--spectrum-focus-indicator-color);
    --spectrum-sidenav-min-height: var(--spectrum-component-height-100);
    --spectrum-sidenav-width: 100%;
    --spectrum-sidenav-min-width: var(--spectrum-side-navigation-minimum-width);
    --spectrum-sidenav-max-width: var(--spectrum-side-navigation-maximum-width);
    --spectrum-sidenav-border-radius: var(--spectrum-corner-radius-100);
    --spectrum-sidenav-icon-size: var(--spectrum-workflow-icon-size-100);
    --spectrum-sidenav-icon-spacing: var(--spectrum-text-to-visual-100);
    --spectrum-sidenav-inline-padding: var(--spectrum-component-edge-to-text-100);
    --spectrum-sidenav-gap: var(--spectrum-side-navigation-item-to-item);
    --spectrum-sidenav-top-to-icon: var(--spectrum-component-top-to-workflow-icon-100);
    --spectrum-sidenav-top-to-label: var(--spectrum-component-top-to-text-100);
    --spectrum-sidenav-bottom-to-label: var(--spectrum-side-navigation-bottom-to-text);
    --spectrum-sidenav-start-to-content-second-level: var(--spectrum-side-navigation-second-level-edge-to-text);
    --spectrum-sidenav-start-to-content-third-level: var(--spectrum-side-navigation-third-level-edge-to-text);
    --spectrum-sidenav-start-to-content-with-icon-second-level: var(--spectrum-side-navigation-with-icon-second-level-edge-to-text);
    --spectrum-sidenav-start-to-content-with-icon-third-level: var(--spectrum-side-navigation-with-icon-third-level-edge-to-text);
    --spectrum-sidenav-heading-top-margin: var(--spectrum-side-navigation-item-to-header);
    --spectrum-sidenav-heading-bottom-margin: var(--spectrum-side-navigation-header-to-item);
    --spectrum-sidenav-background-disabled: transparent;
    --spectrum-sidenav-background-default: transparent;
    --spectrum-sidenav-header-color: var(--spectrum-gray-600);
    --spectrum-sidenav-content-disabled-color: var(--spectrum-disabled-content-color);
    --spectrum-sidenav-content-color-default: var(--spectrum-neutral-content-color-default);
    --spectrum-sidenav-content-color-hover: var(--spectrum-neutral-content-color-hover);
    --spectrum-sidenav-content-color-down: var(--spectrum-neutral-content-color-down);
    --spectrum-sidenav-content-color-key-focus: var(--spectrum-neutral-content-color-key-focus);
    --spectrum-sidenav-content-color-default-selected: var(--spectrum-neutral-content-color-default);
    --spectrum-sidenav-content-color-hover-selected: var(--spectrum-neutral-content-color-hover);
    --spectrum-sidenav-content-color-down-selected: var(--spectrum-neutral-content-color-down);
    --spectrum-sidenav-content-color-key-focus-selected: var(--spectrum-neutral-content-color-key-focus);
    --spectrum-sidenav-text-font-family: var(--spectrum-sans-font-family-stack);
    --spectrum-sidenav-text-font-weight: var(--spectrum-regular-font-weight);
    --spectrum-sidenav-text-font-style: var(--spectrum-default-font-style);
    --spectrum-sidenav-text-font-size: var(--spectrum-font-size-100);
    --spectrum-sidenav-text-line-height: var(--spectrum-line-height-100);
    --spectrum-sidenav-top-level-font-family: var(--spectrum-sans-font-family-stack);
    --spectrum-sidenav-top-level-font-weight: var(--spectrum-bold-font-weight);
    --spectrum-sidenav-top-level-font-style: var(--spectrum-default-font-style);
    --spectrum-sidenav-top-level-font-size: var(--spectrum-font-size-100);
    --spectrum-sidenav-top-level-line-height: var(--spectrum-line-height-100);
    --spectrum-sidenav-header-font-family: var(--spectrum-sans-font-family-stack);
    --spectrum-sidenav-header-font-weight: var(--spectrum-medium-font-weight);
    --spectrum-sidenav-header-font-style: var(--spectrum-default-font-style);
    --spectrum-sidenav-header-font-size: var(--spectrum-font-size-75);
    --spectrum-sidenav-header-line-height: var(--spectrum-line-height-100);
    flex-direction: column;
    margin: 0;
    padding: 0;
    list-style-type: none;
    display: flex;
}

:host:lang(ja),
:host:lang(ko),
:host:lang(zh) {
    --spectrum-sidenav-text-line-height: var(--spectrum-cjk-line-height-100);
    --spectrum-sidenav-top-level-line-height: var(--spectrum-cjk-line-height-100);
    --spectrum-sidenav-header-line-height: var(--spectrum-cjk-line-height-100);
}
